<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
     <title>属性管理</title>
    <hdjs />
    <js file= '__PUBLIC__/js/mod.base.js,__PUBLIC__/js/mod.attr.js' />
    <css file= '__PUBLIC__/css/mod.base.css' />
</head>
<body>
    <div class="hd-menu-list">
        <ul>
        	<li>
                <a href="{:U('Type/index')}">类型列表</a>
            </li>
            <li class="active">
                <a href="javascript:;">属性列表</a>
            </li>
            <li>
                <a href="{:U('Attr/add',array('typeid'=>$_GET['typeid']))}">添加属性</a>
            </li>
            <li>
                <a href="{:U('Attr/update_cache',array('typeid'=>$_GET['typeid']))}" >更新缓存</a>
            </li>
        </ul>
    </div>
   
    <div class="hd-title-header">温馨提示</div>
    <div class="help">
        <ul>
            <li>
            类型：{$typename} 请谨慎修改
            </li>
        </ul>
    </div>
    <div class="content">
       <form action="{:U('Attr/beachdelete',array('typeid'=>$_GET['typeid']))}" method="post" name="operationForm">
        <table class="hd-table hd-table-list hd-form">
            <thead>
                <tr>
                    <td class="hd-w30"><input type="checkbox"></td>
                    <td class="hd-w60">排序</td>
                    <td class="hd-w30" >attrid</td>
                    <td>属性名称</td>
                 
                    <td class="hd-w150">操作</td>
                </tr>
            </thead>
            <tbody>
            	<if condition='$data'>
                <foreach name='data' item='v'>
                <tr>
                    <td><input type="checkbox" name="attr_id[{$v.attr_id}]" value="{$v.attr_id}"></td>
                    <td><input type="text" name="sort[{$v.attr_id}]" value="{$v.sort}" class="hd-w60" /></td>
                    <td>{$v.attr_id}</td>
                    <td>{$v.attr_name}</td>
                   
                    <td>
                      
                        <a href="{:U('Attr/edit',array('attr_id'=>$v['attr_id'],'typeid'=>$v['type_typeid']))}">修改</a>
                        |
                        <a href="javascript:;" onclick="del_modal('{:U('Attr/del',array('attr_id'=>$v['attr_id'],'typeid'=>$v['type_typeid']))}')">删除</a>
                    </td>
                </tr>
                </foreach>
                <else />
                <tr>
                	<td colspan="7">没有找到符合条件的记录</td>
                </tr>
            </if>
            </tbody>
        </table>
        <input type="hidden" name='typeid' value="{$Think.get.typeid}" />
        <input type="button" class="hd-btn hd-btn-sm select_all" value="全选">
        <input type="button" class="hd-btn hd-btn-sm operation" value="排序" name="update_sort">
        </form>
    </div>
    

</body>
</html>